package ModelLayer;


public class Customer extends Person
{
    // instance variables - replace the example below with your own
    private double accountLimit;
    private double accountBalance;

    /**
     * Constructor for objects of class Customer
     * @param long id - The persons ID
     * @param String name - The persons name
     * @param String address - The persons address
     * @param String phoneNumber - The persons phone number
     * @param String email - The persons email
     * @param double accountLimit - The limit of the customers account
     * @param double accountBalance - The balance of the customers account
     */
    public Customer(long id, String name, String address, String phoneNumber, String email, double accountLimit, double accountBalance)
    {
        super(id, name, address, phoneNumber, email);
        this.accountLimit = accountLimit;
        this.accountBalance = accountBalance;
    }
    
    /**
     * This method returns the account limit.
     * 
     * @return  The account limit. As a double.
     */
    public double getAccountLimit()
    {
        return accountLimit;
    }
    
    /**
     * This method returns the account balance.
     * 
     * @return  The account balance. As a double.
     */
    public double getAccountBalance()
    {
        return accountBalance;
    }
    
    /**
     * This method changes the account limit.
     * 
     * @param  The account limit. As a double.
     */
    public void setAccountLimit(double accountLimit)
    {
        this.accountLimit = accountLimit;
    }
    
    /**
     * This method changes the account balance.
     * 
     * @param  The account balance. As a double.
     */
    public void setAccountBalance()
    {
        this.accountBalance = accountBalance;
    }
}
